#!/bin/sh

echo "HelloWorld,please enter your choice:";
echo "1 start Apache";
echo "2 stop Apache";
echo "3 restart Apache";
echo "4 exit";
read choice;

case $choice in
1)
    echo "starting apache1!";
    sh /Users/gikkiares/Documents/tomcat/apache-tomcat-6.0.41/bin/startup.sh;
    echo "Apache1 Start Successfully!!!";
    ;;
2)
    echo "stopping apache1!";
    sh /Users/gikkiares/Documents/tomcat/apache-tomcat-6.0.41/bin/shutdown.sh;
    echo "Apache1 Stop Successfully!!!"; 
    ;;
3)
    echo "restarting apache1!";
    sh /Users/gikkiares/Documents/tomcat/apache-tomcat-6.0.41/bin/restart.sh;
    echo "Apache1 Restart Successfully!!!";
    ;;
*)	
		echo "welcome using me again!";
		exit;
esac